const api = {
	state: {
		// 全局变量接口
		api: {
			GLOBAL_loginURI: "/auth/user/loginV1", //登录接口（密码登录）
			GLOBAL_user_loginV2: "/auth/user/loginV2", //登录接口（手机号登录）
			GLOBAL_changePWD: "/auth/user/changePWD", //修改密
			GLOBAL_getPhoneCode: "/auth/user/getPhoneCode", //获取手机验证码
			GLOBAL_regURL: "/auth/user/reg", //获取验证码
			GLOBAL_LOGIN_GIF: "/auth/user/getGifCode", //动态码
			GLOBAL_user_logout: "/auth/user/logout", //用户登出
		}
	},
	mutations: {
		SET_BREADCRUMB: (state, breadcrumb) => {
			state.breadcrumb = breadcrumb
		},
	},
	actions: {
		SET_BREADCRUMB({
			commit
		}, userInfo) {
			return new Promise((resolve, reject) => {
				commit('SET_BREADCRUMB')
				resolve()
			})
		}
	}
}

export default api
